package io.renren.modules.noc.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.noc.entity.NocMemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author whc
 * @email hucheng_86@126.com
 * @date 2019-04-03 22:37:46
 */
@Mapper
public interface NocMemberDao extends BaseMapper<NocMemberEntity> {

    public List<Map<String,Object>> memberCount(Map<String,Object> map);

    public String getNextErCode(@Param("pre")String pre);

    public List<NocMemberEntity> getRepay(Page<Map<String,Object>> page, @Param("params")Map<String, Object> params);

    public Map<String,Object> getMember(Map<String,Object> map);


    public NocMemberEntity getMemberPhone(Integer memberid);

    public void updateSign(Map<String,Object> map);

    public Integer selectCount(Map<String,Object> map);

    NocMemberEntity getMemberById(Integer memberId);

    List<NocMemberEntity> getErcodeByOpenId(Map<String,Object> map);

    Map<String, Integer> getMemberId(String barCode);

    Map<String, String> getMemberQRCode(@Param("code") String machineCode);

    Map<String,Object> getMemberByErCode(String ercode);

    Map<String, Integer> getMemberTid(String barCode);

}
